<?php
include_once("config.php");

connectToDB();
doCSS();

$r = mysql_query("SELECT * FROM users");
$total = mysql_num_rows($r);

echo "
<table>
<tr>
	<td class=up>ID</td>
	<td class=up>Никнейм</td>
	<td class=up>E-mail</td>
	<td class=up>Группа</td>
	<td class=up>Зарегистрирован</td>
	<td class=up>PM</td>
</tr>";

for ($i=0; $i<$total; $i++)
{
	$mass = mysql_fetch_array($r);
	echo "<tr>
	<td class='n'>$mass[id]</td>
	<td class='n'><a href='profile.php?id=$mass[id]'>$mass[login]</a></td>
	<td class='n'>$mass[email]</td>
	<td class='n'>".change(team, $mass[team])."</td>
	<td class='n'>$mass[register]</td>
	<td class='n' align=center><a href ='messages.php?act=new&toid=$mass[id]'><img src='/images/act_mail.gif' border=0></a></td>
	</tr>";
}
echo "</table>";
?>
